package com.meilai.project.vo.business.installOrder;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.meilai.project.entity.business.installOrder.WorkOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;


/**
 * @author 杨凯博
 * @date 2022/3/17
 */


@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value="返回对象-工单管理-销售单", description="返回对象-工单管理-销售单")
public class WorkOrderBillSaleVO {
    @ApiModelProperty(value = "销售单ID")
    private Long id;
    @ApiModelProperty(value = "点位选择id")
    private Long choose_id;
    @ApiModelProperty(value = "日期范围id")
    private Long daterange_id;
    @ApiModelProperty(value = "销售单甲方名称")
    private String name;
    @ApiModelProperty(value = "时间段-开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime start_at;
    @ApiModelProperty(value = "时间段-结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime end_at;

    @ApiModelProperty(value = "销售单已关联的工单")
    private List<WorkOrder> workOrderList;

}
